power of two leetcode solution